package com.sunnada.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@MapperScan("com.sunnada.demo.dao")
@EnableJpaRepositories(basePackages = {"com.sunnada.demo.log.dao","com.sunnada.demo.dao"})
@EntityScan(basePackages = {"com.sunnada.demo.bean","com.sunnada.demo.log.bean"})
public class Application {
    public static void main(String[] args){

        ConfigurableApplicationContext ctx = SpringApplication.run(Application.class, args);

    }
}
